home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  3.2 KB  |  168 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1993, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __TERMINALTOOLS__
  19. #define __TERMINALTOOLS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. #ifndef __TERMINALS__
  28. #include <Terminals.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53.  
  54. enum {
  55.     tdefType                    = FOUR_CHAR_CODE('tdef'),
  56.     tvalType                    = FOUR_CHAR_CODE('tval'),
  57.     tsetType                    = FOUR_CHAR_CODE('tset'),
  58.     tlocType                    = FOUR_CHAR_CODE('tloc'),
  59.     tscrType                    = FOUR_CHAR_CODE('tscr'),
  60.     tbndType                    = FOUR_CHAR_CODE('tbnd'),
  61.     tverType                    = FOUR_CHAR_CODE('vers')
  62. };
  63.  
  64.  
  65. enum {
  66.                                                                 /* messages */
  67.     tmInitMsg                    = 0,
  68.     tmDisposeMsg                = 1,
  69.     tmSuspendMsg                = 2,
  70.     tmResumeMsg                    = 3,
  71.     tmMenuMsg                    = 4,
  72.     tmEventMsg                    = 5,
  73.     tmActivateMsg                = 6,
  74.     tmDeactivateMsg                = 7,
  75.     tmGetErrorStringMsg            = 8,
  76.     tmIdleMsg                    = 50,
  77.     tmResetMsg                    = 51,
  78.     tmKeyMsg                    = 100,
  79.     tmStreamMsg                    = 101,
  80.     tmResizeMsg                    = 102,
  81.     tmUpdateMsg                    = 103,
  82.     tmClickMsg                    = 104,
  83.     tmGetSelectionMsg            = 105,
  84.     tmSetSelectionMsg            = 106,
  85.     tmScrollMsg                    = 107,
  86.     tmClearMsg                    = 108,
  87.     tmGetLineMsg                = 109,
  88.     tmPaintMsg                    = 110,
  89.     tmCursorMsg                    = 111,
  90.     tmGetEnvironsMsg            = 112,
  91.     tmDoTermKeyMsg                = 113,
  92.     tmCountTermKeysMsg            = 114,
  93.     tmGetIndTermKeyMsg            = 115
  94. };
  95.  
  96.  
  97. enum {
  98.                                                                 /* messages for validate DefProc    */
  99.     tmValidateMsg                = 0,
  100.     tmDefaultMsg                = 1
  101. };
  102.  
  103.  
  104. enum {
  105.                                                                 /* messages for Setup DefProc    */
  106.     tmSpreflightMsg                = 0,
  107.     tmSsetupMsg                    = 1,
  108.     tmSitemMsg                    = 2,
  109.     tmSfilterMsg                = 3,
  110.     tmScleanupMsg                = 4
  111. };
  112.  
  113.  
  114. enum {
  115.                                                                 /* messages for scripting defProc    */
  116.     tmMgetMsg                    = 0,
  117.     tmMsetMsg                    = 1
  118. };
  119.  
  120.  
  121. enum {
  122.                                                                 /* messages for localization defProc  */
  123.     tmL2English                    = 0,
  124.     tmL2Intl                    = 1
  125. };
  126.  
  127. struct TMSearchBlock {
  128.     StringHandle                     theString;
  129.     Rect                             where;
  130.     TMSearchTypes                     searchType;
  131.     TerminalSearchCallBackUPP         callBack;
  132.     short                             refnum;
  133.     struct TMSearchBlock *            next;
  134. };
  135. typedef struct TMSearchBlock TMSearchBlock;
  136.  
  137. typedef TMSearchBlock *                    TMSearchBlockPtr;
  138. struct TMSetupStruct {
  139.     DialogPtr                         theDialog;
  140.     short                             count;
  141.     Ptr                             theConfig;
  142.     short                             procID;                        /* procID of the tool */
  143. };
  144. typedef struct TMSetupStruct TMSetupStruct;
  145.  
  146. typedef TMSetupStruct *                    TMSetupPtr;
  147.  
  148. #if PRAGMA_STRUCT_ALIGN
  149.     #pragma options align=reset
  150. #elif PRAGMA_STRUCT_PACKPUSH
  151.     #pragma pack(pop)
  152. #elif PRAGMA_STRUCT_PACK
  153.     #pragma pack()
  154. #endif
  155.  
  156. #ifdef PRAGMA_IMPORT_OFF
  157. #pragma import off
  158. #elif PRAGMA_IMPORT
  159. #pragma import reset
  160. #endif
  161.  
  162. #ifdef __cplusplus
  163. }
  164. #endif
  165.  
  166. #endif /* __TERMINALTOOLS__ */
  167.  
  168.